package com.smashcrush.client.rest;

import java.util.Map;

import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import com.smashcrush.model.Script;

@Path("/api/testing")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public interface ClientTestingService {

	@POST
	@Path("token/{token}/poll/script")
	public Script pollScript(@PathParam("token") String token);

	@POST
	@Path("token/{token}/push/results")
	public String pushResults(@PathParam("token") String token,
			Map<String, String> results);

}